| Filename | (eval 1049)[/usr/share/perl/5.10/CGI.pm:869] |
| Statements | Executed 94 statements in 665µs |
| Eval Invoked At | /usr/share/perl/5.10/CGI.pm line 869 |
| Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 13 | 10 | 5 | 2.93ms | 4.19ms | CGI::cookie |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | # spent 4.19ms (2.93+1.26) within CGI::cookie which was called 13 times, avg 323µs/call:
# 2 times (81µs+104µs) by CGI::Session::load at line 707 of CGI/Session.pm, avg 93µs/call
# 2 times (63µs+92µs) by C4::Auth::ParseSearchHistoryCookie at line 1791 of /usr/share/koha/lib/C4/Auth.pm, avg 77µs/call
# 2 times (51µs+88µs) by C4::Templates::getlanguage at line 331 of /usr/share/koha/lib/C4/Templates.pm, avg 70µs/call
# once (2.51ms+373µs) by C4::Templates::getlanguage at line 832 of CGI.pm
# once (49µs+240µs) by C4::Auth::checkauth at line 811 of /usr/share/koha/lib/C4/Auth.pm
# once (28µs+137µs) by main::RUNTIME at line 648 of /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
# once (58µs+95µs) by C4::Auth::get_template_and_user at line 366 of /usr/share/koha/lib/C4/Auth.pm
# once (39µs+61µs) by main::RUNTIME at line 130 of /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
# once (33µs+49µs) by C4::Auth::checkauth at line 708 of /usr/share/koha/lib/C4/Auth.pm
# once (17µs+23µs) by main::RUNTIME at line 691 of /usr/share/koha/opac/cgi-bin/opac/opac-search.pl | ||||
| 2 | 13 | 74µs | 13 | 99µs | my($self,@p) = self_or_default(@_); # spent 99µs making 13 calls to CGI::self_or_default, avg 8µs/call |
| 3 | 13 | 136µs | 13 | 429µs | my($name,$value,$path,$domain,$secure,$expires,$httponly) = # spent 429µs making 13 calls to CGI::Util::rearrange, avg 33µs/call |
| 4 | rearrange([NAME,[VALUE,VALUES],PATH,DOMAIN,SECURE,EXPIRES,HTTPONLY],@p); | ||||
| 5 | |||||
| 6 | 13 | 230µs | require CGI::Cookie; | ||
| 7 | |||||
| 8 | # if no value is supplied, then we retrieve the | ||||
| 9 | # value of the cookie, if any. For efficiency, we cache the parsed | ||||
| 10 | # cookies in our state variables. | ||||
| 11 | 13 | 10µs | unless ( defined($value) ) { | ||
| 12 | 11 | 99µs | 11 | 208µs | $self->{'.cookies'} = CGI::Cookie->fetch # spent 208µs making 11 calls to CGI::Cookie::fetch, avg 19µs/call |
| 13 | unless $self->{'.cookies'}; | ||||
| 14 | |||||
| 15 | # If no name is supplied, then retrieve the names of all our cookies. | ||||
| 16 | 11 | 83µs | return () unless $self->{'.cookies'}; | ||
| 17 | return keys %{$self->{'.cookies'}} unless $name; | ||||
| 18 | return () unless $self->{'.cookies'}->{$name}; | ||||
| 19 | return $self->{'.cookies'}->{$name}->value if defined($name) && $name ne ''; | ||||
| 20 | } | ||||
| 21 | |||||
| 22 | # If we get here, we're creating a new cookie | ||||
| 23 | 2 | 2µs | return undef unless defined($name) && $name ne ''; # this is an error | ||
| 24 | |||||
| 25 | 2 | 800ns | my @param; | ||
| 26 | 2 | 4µs | push(@param,'-name'=>$name); | ||
| 27 | 2 | 2µs | push(@param,'-value'=>$value); | ||
| 28 | 2 | 1µs | push(@param,'-domain'=>$domain) if $domain; | ||
| 29 | 2 | 700ns | push(@param,'-path'=>$path) if $path; | ||
| 30 | 2 | 700ns | push(@param,'-expires'=>$expires) if $expires; | ||
| 31 | 2 | 700ns | push(@param,'-secure'=>$secure) if $secure; | ||
| 32 | 2 | 2µs | push(@param,'-httponly'=>$httponly) if $httponly; | ||
| 33 | |||||
| 34 | 2 | 19µs | 2 | 215µs | return new CGI::Cookie(@param); # spent 215µs making 2 calls to CGI::Cookie::new, avg 108µs/call |
| 35 | } | ||||
| 36 | |||||
| 37 | ; |